﻿@model PrjctMngmt.Models.Task

<fieldset>
    <legend>Task</legend>

    <div class="display-label">Name</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">Start date</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.StartDate)
    </div>

    <div class="display-label">End date</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.EndDate)
    </div>

    <div class="display-label">Expected work hours</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ExpectedWorkHours)
    </div>

    <div class="display-label">Time spend</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TimeSpend)
    </div>

    <div class="display-label">Status</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Status)
    </div>

    <div class="display-label">Description</div>
    <div class="display-field description-field">
        @Html.DisplayTextFor(model => model.Description)
    </div>

    <div class="display-label">Project</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Project.Name)
    </div>

    <div class="display-label">Category</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TaskCategoryName)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.TaskID })
    <br />
    @Html.ActionLink("See assignments", "ShowTaskAssignments", "TaskAssignment", new { id = Model.TaskID }, null)
</p>
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
